#ifndef BOOKDATACOLLECTOR_H
#define BOOKDATACOLLECTOR_H

#include <QDialog>
#include <book.h>

// Forward declarations
class QDialogButtonBox;
class QGridLayout;
class QLabel;
class QLineEdit;

class BookDataCollector : public QDialog
{
public:
	explicit BookDataCollector( QWidget *parent = NULL );
	Book getBook();

signals:
	void accepted();
	void rejected();

private:
	void accept();
	void reject();

	Book m_book;
	QDialogButtonBox *m_pButtonBox;

	QLabel *m_pBookIdLabel;
	QLabel *m_pBookTitleLabel;
	QLabel *m_pBookAuthorLabel;
	QLabel *m_pBookYearLabel;
	QLabel *m_pBookDescriptionLabel;
	QLabel *m_pBookPriceLabel;

	QLineEdit *m_pBookIdText;
	QLineEdit *m_pBookTitleText;
	QLineEdit *m_pBookAuthorText;
	QLineEdit *m_pBookYearText;
	QLineEdit *m_pBookDescriptionText;
	QLineEdit *m_pBookPriceText;

	QGridLayout *m_pLayout;
};

#endif // BOOKDATACOLLECTOR_H
